package com.atguigu.srb.core;

import org.mapstruct.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
//开启mapperplus的注解扫描,否则mapper无法注入ioc容器中
@MapperScan(basePackages = "com.atguigu.srb.core.mapper")
//手动指定扫描的包为 com.atguigu.srb 将时间自动填充器也纳入到ioc容器中来
@ComponentScan(basePackages = {"com.atguigu.srb"})
//启用缓存管理
@EnableCaching
//启用定时任务
@EnableScheduling
public class SrbCoreApplication {

    public static void main(String[] args) {
        SpringApplication.run(SrbCoreApplication.class, args);
    }

}
